<template>
	<!-- 球馆 statr -->
	<view class="meadowlands">
		<view class="bg1">
			<view></view>
		</view>
		<view class="dian"></view>
		<view class="header">
			<image src="https://www.guizhouqy.com/mini/back.png" @click="back" mode=""></image>
			<text>订单详情</text>
			<image src="" mode=""></image>
		</view>
		<view class="box1">
			<view class="item">
				<view class="">
					<text class="left">订单号：</text>
					<text class="right">FYUH287t83u920I</text>
				</view>
				<view class="">
					<text class="left">联系人姓名：</text>
					<text class="right">Admin</text>
				</view>
				<view class="">
					<text class="left">联系电话：</text>
					<text class="right">16787587548</text>
				</view>
				<view class="" style="border-bottom:none;">
					<text class="left">球室地址：</text>
					<text class="right">云南省 XX 市民 XXXX 楼 XXX 室</text>
				</view>
			</view>
		</view>
		<view class="box2">
			<view class="title">预约时间：</view>
			<view class="interval">
				<view class="item">15:30</view>
				<text>~</text>
				<view class="item">15:30</view>
			</view>
		</view>
		<view class="box3">
			<view class="but">
				<view class="accept">接受预约</view>
				<view class="cancel">取消预约</view>
			</view>
		</view>
	</view>
	<!-- 球馆 end -->
</template>

<script>
	import {
		goLogin,
		checkLogin
	} from '@/libs/login';
	export default {
		data() {
			return {

			}
		},
		onShow() {
			let theme = uni.getStorageSync('theme')
			this.fontColor = theme.color
			this.themeBg = 'linear-gradient(90deg, ' + theme.bg1 + ', ' + theme.bg2 + ')'
			this.isLogin = this.$store.getters.isLogin

			if (this.isLogin) {
				this.getUserInfo()
				this.getUserBaseInfo()
			}
		},
		methods: {
			back() {
				uni.navigateBack({
					delta: 1
				});
			},
			navTo(url) {
				console.log("url", url)
				uni.navigateTo({
					url
				})
				return
				if (!this.isLogin) {
					goLogin();
				}


			},
		}
	}
</script>

<style scoped lang="scss">
	.meadowlands {
		background: #240F41;
		color: #FFFFFF;
		min-height: 100vh;

		.bg1 {
			display: flex;
			flex-direction: row;
			align-items: center;
			justify-content: center;
			position: absolute;
			left: calc(50%-59px);

			view {
				width: 118px;
				height: 118px;
				background: linear-gradient(90deg, #C829F3 0%, #4516CA 100%);
				box-shadow: inset 0rpx 8rpx 8rpx 0rpx rgba(0, 0, 0, 0.25);
				border-radius: 0rpx 0rpx 0rpx 0rpx;
				opacity: 0.9;
				filter: blur(90px);
			}
		}

		.dian {
			width: 118px;
			height: 118px;
			background: linear-gradient(90deg, #1F87EF 0%, #1F87EF 100%);
			box-shadow: inset 0rpx 8rpx 8rpx 0rpx rgba(0, 0, 0, 0.25);
			border-radius: 0rpx 0rpx 0rpx 0rpx;
			opacity: 0.9;
			filter: blur(90px);
			position: absolute;
			left: 0;
			top: 20px;
		}

		.header {
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			padding: 0 38rpx;
			padding-top: 30px;

			image {
				width: 48rpx;
				height: 48rpx;
				z-index: 999;
			}
		}

		.box1 {
			padding: 0 26rpx;
			margin-top: 62rpx;

			.item {
				width: 100%;
				background: linear-gradient(180deg, #9A24B9 0%, #7116E9 100%);
				border-radius: 16rpx 16rpx 16rpx 16rpx;
				border: 2rpx solid #9A24B9;

				view {
					display: flex;
					flex-direction: row;
					align-items: center;
					justify-content: space-between;
					border-bottom: 1rpx solid #C829F3;
					font-size: 28rpx;
					font-weight: 500;
					color: #FFFFFF;

					.left {
						padding-left: 38rpx;
						display: block;
						padding-top: 26rpx;
						padding-bottom: 26rpx;
					}

					.right {
						padding-bottom: 26rpx;
						padding-top: 26rpx;
						padding-right: 32rpx;
					}
				}
			}
		}
		.box2{
			padding: 0 26rpx;
			.title{
				font-weight: bold;
				font-size: 28rpx;
				color: #FFFFFF;
				margin-top: 28rpx;
			}
			.interval{
				display: flex;
				flex-direction: row;
				align-items: center;
				margin-top: 28rpx;
				.item{
					width: 120rpx;
					height: 48rpx;
					background: linear-gradient( 180deg, #9A24B9 0%, #7116E9 100%);
					border-radius: 8rpx 8rpx 8rpx 8rpx;
					border: 2rpx solid #9A24B9;
					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: center;
					font-weight: 500;
					font-size: 24rpx;
					color: #FFFFFF;
				}
				text{
					margin: 0 32rpx;
				}
			}
		}
		.box3{
			padding: 0 24rpx;
			position: fixed;
			bottom: 0;
			width: 100%;
			.but{
				
				.accept{
					width: 100%;
					height: 80rpx;
					background: linear-gradient( 313deg, #7116E9 0%, #15D1E2 100%);
					border-radius: 16rpx 16rpx 16rpx 16rpx;
					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: center;
					font-weight: bold;
					font-size: 32rpx;
					color: #FFFFFF;
				}
				.cancel{
					width: 100%;
					height: 80rpx;
					border: 2rpx solid;
					border-image: linear-gradient(313deg, rgba(113, 22, 233, 1), rgba(21, 209, 226, 1)) 2 2;
					border-radius: 16rpx 16rpx 16rpx 16rpx;
					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: center;
					font-weight: bold;
					font-size: 32rpx;
					margin-top: 48rpx;
					background: linear-gradient(222.90278493605044deg, #7116E9 0%, #15D1E2 100%);
					/* 关键属性：背景裁剪到文字 */
					-webkit-background-clip: text;
					background-clip: text;
					/* 隐藏原始文字颜色 */
					color: transparent;
				}
			}
		}
	}
</style>